package com.itboye.ihomebank.interfaces;
/**
 * 钥匙接口类
 *
 */
public interface KeyInterface<HouseBean> {

	/**
	 * 注册
	 * @param uid
	 */
	void getRegister(String uid);
	
	/**
	 * 绑定管理员
	 * @param uid
	 * @param lock_type
	 * @param lockName
	 * @param lockAlias
	 * @param lockMac
	 * @param lockKey
	 * @param lockFlagPos
	 * @param aesKeyStr
	 * @param protocalType
	 * @param protocalVersion
	 * @param scene
	 * @param groupid
	 * @param orgid
	 */
	void getAddMain(String uid,String lock_type,String lockName,String lockAlias,String lockMac,String lockKey,String lockFlagPos
			,String aesKeyStr,String version);
	
	/**
	 * 开锁记录
	 * @param uid
	 * @param lock_id		
	 * @param current_page	页码
	 * @param per_page		每页条数
	 */
	void getKaiSuoJiLu(String uid,String lock_id,String current_page,String per_page);
	/**
	 * 冻结钥匙
	 * @param uid
	 * @param to_uid	
	 * @param lock_id
	 * @param key_id
	 */
	void getDongJie(String uid,String to_uid,String lock_id,String key_id);
	/**
	 * 解冻钥匙
	 * @param uid
	 * @param to_uid	
	 * @param lock_id
	 * @param key_id
	 */
	void getJieDong(String uid,String to_uid,String lock_id,String key_id);
	/**
	 * 删除钥匙
	 * @param uid
	 * @param to_uid
	 * @param lock_id
	 * @param key_id
	 */
	void getShanChu(String uid,String to_uid,String lock_id,String key_id);
	/**
	 * 备份钥匙
	 * @param uid			用户id
	 * @param lock_Id		锁id
	 * @param key_id		钥匙Id
	 * @param admin_ps		锁的管理员开门密码，普通钥匙传空字符串
	 * @param nokey_ps		管理员键盘密码，普通钥匙传空字符串
	 * @param delete_ps		锁删除密码，普通钥匙传空字符串
	 */
	void getBeiFei(String uid,String lock_Id,String key_id,String admin_ps,String nokey_ps,String delete_ps);
	
	/**
	 * 设置键盘密码
	 * @param uid
	 * @param lock_id
	 * @param pwd_info	加密后的密码信息（SDK返回的参数）
	 * @param timestamp	时间戳（SDK返回的参数）,long
	 */
	void getJianPanPass(String uid,String lock_id,String pwd_info,String timestamp);
	
	/**
	 * 备份钥匙列表
	 * @param uid
	 */
	void getBeifeiList(String uid);
	/**
	 * 删除备份钥匙
	 * @param uid
	 * @param lock_id
	 * @param key_id
	 */
	void getDeleteBeiFen(String uid,String lock_id,String key_id);
	
	/**
	 * 下载备份钥匙
	 * @param uid
	 * @param lock_id
	 * @param key_id
	 */
	void getDownKeyBeiFen(String uid,String lock_id,String key_id);
	
	/**
	 * 发送键盘密码
	 * @param uid
	 * @param lock_id
	 * @param pwd_type	密码类型(0-》单词密码；2-》1小时；3-》1天；4-》1周；5-》1月；6-》1年；7-》永久)
	 * @param to_phone	ihome_phone_number,send_to_who
	 * @param start		开始生效时间,时间戳,整点时间,3600的倍数
	 * @param end		失效时间,时间戳,整点时间,3600的倍数
	 */
	void getKeyboardPwd(String uid,String lock_id,String pwd_type,String to_phone,String start,String end);
	
	/**
	 * 意见反馈
	 * @param uid
	 * @param content
	 */
	void getFankui(String uid,String content);
	
	/**
	 * 获取锁信息
	 */
	void getSuoXinXi();
	
	/**
	 * 提交预约
	 * @param uid
	 * @param name
	 * @param mobile
	 * @param address
	 */
	void getYuYue(String uid,String name,String mobile,String address);
	/**
	 * 锁推送
	 * @param uid
	 * @param lock_id
	 * @param push		[0=>不推送，1=>推送]
	 */
	void getTuiSong(String uid,String lock_id,String push);
	/**
	 * 消息未读
	 * @param uid
	 */
	void getWeiDu(String uid);
	/**
	 * 消息已读
	 * @param uid
	 * @param id
	 */
	void getYiDu(String uid,String id);
	
	
}
